package com.zlf.web.service;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

/**
 * Created by Administrator on 2016/12/22.
 *
 * @author zlf
 */
public class ClientWsProxy {

    public static void main(String[] args) {

//        JaxWsProxyFactoryBean factory;
//        factory = new JaxWsProxyFactoryBean();
//        factory.setAddress("http://localhost:8080/ws/soap/hello");
//        factory.setServiceClass(HelloWorld.class);
//
//        HelloWorld helloService = factory.create(HelloWorld.class);
//        String result = helloService.say("world");
//        System.out.println(result);

    }

}
